package models

import "time"

type SysMessage struct {
	ID int `json:"id" gorm:"primary key;not null;AUTO_INCREMENT"`
	UserID uint `json:"user_id"`
	Message string `json:"message"`
	Type string `json:"type"`
	Type2 string `json:"type_2"`
	IsRead int `json:"is_read"`
	CreatedAt time.Time `json:"created_at"`
	User SysUser `gorm:"ForeignKey:UserID;AssociationForeignKey:ID" json:"user"`
}
